package sivan.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import sivan.domain.Blog;

import java.util.List;

public interface BlogMapper {

    Blog selectBlog(@Param("id") Integer id, @Param("name") String name);

    Blog findByName(@Param("name") String name);

    @Select("select * from blog")
    List<Blog> findList();

    Blog findById(@Param("id") Integer id);

    Blog findByNames(@Param("name") String name);
}
